<link rel="stylesheet" href="resource/css/swiper.min.css" />
<script type="text/javascript" src="resource/js/swiper.min.js" ></script>
<link rel="stylesheet" type="text/css" href="resource/css/myslider.css">
<style>
     .footer-home{display: none;}
</style>
<header>
    <a href="javascript:history.back();">
        <i class="iconfont icon-xialalan-copy"></i>
    </a>
    <span>代金券详情</span>
    <a  class="fr"><i class="icshare iconfont icon-fenxiang"></i></a>
</header>

<div class="dining_box margin_bot">
    <div class="home-slide swiper-container">

        <ul class="slider swiper-wrapper">
            <?php if($output['images']){ ?>
                <?php foreach($output['images'] as $key =>$vo){?>
                    <li class="swiper-slide"><img class="en_pic" src="<?php echo $vo['img_path']; ?>" alt="套餐美食"/></li>
                <?php  }?>
            <?php }else{ ?>
                <img src="resource/images/hotel.jpg" />
            <?php  }?>
        </ul>

    </div>
    <div class="dining_shade" style="z-index: 100;">
        <h5><?php echo $output['merchant_info']['mc_shop_name']; ?></h5>
        <span><?php echo $output['food_info']['fd_title']; ?></span>
        <h5><?php echo $output['food_info']['fd_subtitle']; ?></h5>
    </div>
</div>
<div class="room_list">
    <div class="de_title div_padding de_title_bottom">
        购买须知
        <span class="soll fr">已售：<b class="color_red"><?php echo $output['food_info']['sales']; ?></b></span>
    </div>
    <div class="ui-tab">
        <div class="info-shrink-text" id="info-manager-content">
         <?php echo $output['food_info']['fd_tips']; ?>
        </div>
        <div style="text-align: right;margin: -15px 5px 0 auto;"><i class="more-text iconfont icon-xialalan"></i></div>
    </div>
</div>
<div class="dining_info">
    <div class="dining_title">餐厅介绍</div>
    <div class="dining_detail ">
        <img src="<?php echo $output['merchant_info']['mc_cover_img']; ?>" alt="餐厅logo"/>
        <div class="dining_name ">
            <a href="index.php?act=food&op=merchant_food&mcid=<?php echo $output['merchant_info']['merchant_id']; ?>">
            <h1><?php echo $output['merchant_info']['mc_shop_name']; ?></h1>
            <p class="cleanfloat starFive sF1">
                <span class="org_star iconfont icon-xingxing"></span>
                <span class="org_star iconfont icon-xingxing"></span>
                <span class="org_star iconfont icon-xingxing"></span>
                <span class="org_star iconfont icon-xingxing"></span>
                <span class="org_star iconfont icon-xingxing"></span>
            </p>
            </a>
            <p class="dining_addr"><i class="iconfont icon-diliweizhi "><?php echo $output['merchant_info']['address']; ?></i></p>
            <i class="iconfont icon-dianhua connect" onclick="window.location.href='tel:<?php echo $output['merchant_info']['service_phone']; ?>'"></i>
        </div>
    </div>
</div>
<div class="user_comment">
    <div class="de_title div_padding de_title_bottom">
        用户评价（<?php echo $output['cot_count'];  ?>）
        <a href="index.php?act=comment&op=index&mc_id=<?php echo $output['food_info']['merchant_id'] ?>&type_id=<?php echo FOOD_MARK;  ?>"> <i class="rotate iconfont icon-xialalan-copy fr"></i></a>
    </div>
    <?php if($output['cmt_list']): ?>

        <div class="assessment_item">
            <?php foreach($output['cmt_list'] as $key=>$value) :?>
                <div class="ass_list">
                    <div class="ass_img">
                        <img src="<?php echo $value['member_head']; ?>" alt="用户头像">
                    </div>
                    <div class="ass_info">
                        <h1><?php echo $value['member_name']; ?><span class="fr"><?php echo date('Y-m-d',$value['addtime']) ?></span></h1>
                        <p class="cleanfloat starFive sF1">
                            <?php for($i=0;$i<$value['all_point'];$i++): ?>
                                <span class="org_star iconfont icon-xingxing"></span>
                            <?php endfor; ?>
                            <b><?php echo $value['all_point']; ?>分</b>
                        </p>
                        <p class="p-2 p_info"><?php echo $value['content']; ?></p>
                        <ul class="food_pic">
                            <?php if($value['pic_1']): ?>
                                <li><img src="<?php echo $value['pic_1']; ?>"></li>
                            <?php endif; ?>
                            <?php if($value['pic_2']): ?>
                                <li><img src="<?php echo $value['pic_2']; ?>"></li>
                            <?php endif; ?>
                            <?php if($value['pic_3']): ?>
                                <li><img src="<?php echo $value['pic_3']; ?>"></li>
                            <?php endif; ?>
                        </ul>
                    </div>
                </div>
            <?php endforeach; ?>
        </div>
    <?php endif; ?>
</div>
<div class="buy">
    <a  class="hot_line fl">
        <b class="color_red">￥<?php echo $output['food_info']['price']; ?></b>
    </a>
    <?php if($output['food_info']['stock']>0){ ?>
        <a  href="index.php?act=food&op=place_info&fd_id=<?php echo $output['food_info']['fd_id']; ?>" class="buy_btn fr" >立即购买</a>
    <?php }else{ ?>
        <a class="buy_btn fr" style="background-color:#cccccc">立即购买</a>
    <?php } ?>
</div>
<script>
    var swiper = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        paginationClickable: true,
        loop: true,
        autoplay: 3000,
        autoplayDisableOnInteraction: false
    });
</script>